package com.ls.lserp.modules.setting.dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.modules.common.entity.UploadFile;
import com.ls.lserp.modules.setting.entity.CompanyUser;
import com.ls.lserp.modules.sys.entity.User;

@MyBatisDao
public interface CompanyUserDao extends CrudDao<CompanyUser>{
   
	
	/**
	  * @Title: findCompanyUser
	  * @Description: 查询子项目接口
	  * @param @param CompanyUser
	  * @param @return
	  * @return List<CompanyUser> 
	  * @throws
	  */
	
	public List<CompanyUser> findCompanyUser(CompanyUser companyUser);

	
    public CompanyUser getCompanyUserData(Long id);
    // 获取dutyId
    public Long getDutyId(Long id);
    
    public List<CompanyUser> getDutyList(CompanyUser entity);
    public List<CompanyUser> getUserGroupList(CompanyUser entity);
    public List<CompanyUser> getRoleList(CompanyUser entity);
    public List<CompanyUser> getOgnizationList(CompanyUser entity);
    
    /**
	  * @Title: insert
	  * @Description: 插入
	  * @param @param CompanyUser
	  * @throws
	  */
    
    public int insertLoginUser(CompanyUser companyUser);
    public int insertOgnizationUser(CompanyUser companyUser);
    public int insertGroupUser(CompanyUser companyUser);
    public int insertUserRole(CompanyUser companyUser);
    
    /**
	  * @Title: update
	  * @Description: 更新
	  * @param @param CompanyUser
	  * @throws
	  */
    
    public int updateLoginUser(CompanyUser companyUser);
	public int updateOgnizationUser(CompanyUser companyUser);
	public int updateGroupUser(CompanyUser companyUser);
	public int updateUserRole(CompanyUser companyUser);


	
}
